package com.cheng.example.atguigu.design_pattern.facade;

/*
 * @author 程帅
 * @createTime: 2020/10/21 21:54
 * @Created: with IntelliJ IDEA.
 */
//剧场灯光
public class TheaterLight {

    private static TheaterLight instance = new TheaterLight();

    public static TheaterLight getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("TheaterLight is on");
    }

    public void off() {
        System.out.println("TheaterLight is off");
    }

    //暗淡
    public void dim() {
        System.out.println("TheaterLight is on");
    }

    //明亮
    public void bright() {
        System.out.println("TheaterLight is bright");
    }


}
